package array

import "fmt"

func Sum(ints [5]int) int {
	result := 0
	for i := 0; i < len(ints); i++ {
		result += ints[i]
	}
	return result
}

func Sum2(ints []int) int {
	result := 0
	for i, v := range ints {
		fmt.Printf("%d", i)
		result += v
	}
	return result
}
